package com.yy.smartBI;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * 主类（项目启动入口）
 *
 * @author <a href="https://gitee.com/yysheeps">Sheep</a>
 * @from <a href="https://gitee.com/yysheeps"> sheeps</a>
 */
// todo 如需开启 Redis，须移除 exclude 中的内容 好
@EnableScheduling
@SpringBootApplication(exclude = {RedisAutoConfiguration.class})
@MapperScan("com.yy.smartBI.mapper")
@EnableFeignClients(basePackages = "com.yy.api")
@EnableAspectJAutoProxy(proxyTargetClass = true, exposeProxy = true)
public class MainApplication {
    public static void main(String[] args) {
        SpringApplication.run(MainApplication.class, args);
    }

}
